/*
 * @Author: SilentVver 928872571@qq.com
 * @Date: 2023-09-03 18:10:00
 * @LastEditors: SilentWaver silentwaver.code@gmail.com
 * @LastEditTime: 2024-02-26 16:59:59
 * @Description: 
 * 
 */
import { createRouter, createWebHistory } from "vue-router";
import PhoneView from "@/views/PhoneView.vue";
import Test404View from "@/views/Test404View.vue"
import { Main } from "@/components";

const { DesktopVue, AppInstall } = Main


const routes = [
  {
    path: "/",
    name: "home",
    component: PhoneView,
    children: [
      {
        path: '/',
        name: "desktop",
        component: DesktopVue,
      },
      {
        path: '/install',
        name: "installApp",
        component: AppInstall,
      },
      {
        path: '/404',
        name: "404",
        component: Test404View,

      }
    ]
  },
  {
    path: '/loading',
    name: "loadingApp",
    component: () => import('@/views/LoadingView.vue'),
  }

];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
